<template>
  <div class="side-menu">
    <a-layout-sider width="200" style="background: #fff">
      <a-menu
        mode="inline"
        :default-selected-keys="['1']"
        :style="{ borderRight: 0 }"
      >
        <a-menu-item key="welcome">
          <router-link to="/welcome">
            <a-icon type="menu" />
            欢迎
          </router-link>
        </a-menu-item>
        <a-sub-menu>
          <span slot="title">
            <a-icon type="sync" />
            调度管理
          </span>
          <a-menu-item key="job">
            <router-link to="/batch/job">
              <a-icon type="schedule" />
              定时任务
            </router-link>
          </a-menu-item>
        </a-sub-menu>
        <a-sub-menu>
          <span slot="title">
            <a-icon type="setting" />
            系统管理
          </span>
          <a-menu-item key="/system/station">
            <router-link to="/system/station">
              <a-icon type="home" />
              车站
            </router-link>
          </a-menu-item>
          <a-menu-item key="train">
            <router-link to="/system/train">
              <a-icon type="car" />
              车次
            </router-link>
          </a-menu-item>
          <a-menu-item key="trainStation">
            <router-link to="/system/train/station">
              <a-icon type="environment" />
              途径站
            </router-link>
          </a-menu-item>
          <a-menu-item key="trainCarriage">
            <router-link to="/system/carriage">
              <a-icon type="box-plot" />
              车厢
            </router-link>
          </a-menu-item>
          <a-menu-item key="trainSeat">
            <router-link to="/system/seat">
              <a-icon type="user" />
              座位
            </router-link>
          </a-menu-item>
        </a-sub-menu>
        <a-sub-menu>
          <span slot="title">
            <a-icon type="branches" />
            每日管理
          </span>
          <a-menu-item key="dailyTrain">
            <router-link to="/daily/train">
              <a-icon type="car" />
              每日车次
            </router-link>
          </a-menu-item>
          <a-menu-item key="dailyStation">
            <router-link to="/daily/train/station">
              <a-icon type="environment" />
              每日途径站
            </router-link>
          </a-menu-item>
          <a-menu-item key="dailyCarriage">
            <router-link to="/daily/train/carriage">
              <a-icon type="box-plot" />
              每日车厢
            </router-link>
          </a-menu-item>
          <a-menu-item key="dailyTrainSeat">
            <router-link to="/daily/train/seat">
              <a-icon type="user" />
              每日座位
            </router-link>
          </a-menu-item>
          <a-menu-item key="dailyTrainTicket">
            <router-link to="/daily/train/ticket">
              <a-icon type="profile" />
              每日车票
            </router-link>
          </a-menu-item>
          <a-menu-item key="dailyTrainToken">
            <router-link to="/daily/train/token">
              <a-icon type="" />
              每日令牌
            </router-link>
          </a-menu-item>
        </a-sub-menu>
        <a-sub-menu>
          <span slot="title">
            <a-icon type="schedule" />
            订单管理
          </span>
          <a-menu-item key="orderConfirm">
            <router-link to="/order/confirm">
              <a-icon type="schedule" />
              订单
            </router-link>
          </a-menu-item>
        </a-sub-menu>
        <a-sub-menu>
          <span slot="title">
            <a-icon type="money-collect" />
            售票管理
          </span>
          <a-menu-item key="ticket">
            <router-link to="/ticket">
              <a-icon type="money-collect" />
              售票
            </router-link>
          </a-menu-item>
        </a-sub-menu>
        <a-menu-item key="about">
          <router-link to="/about">
            <a-icon type="ellipsis" />
            关于
          </router-link>
        </a-menu-item>
        <!-- <a-sub-menu>
          <span slot="title">
            <router-link to="/welcome">
              <a-icon type="home" />
              option1
            </router-link>
          </span>
          <a-menu-item key="2"> option2 </a-menu-item>
          <a-menu-item key="3"> option3 </a-menu-item>
          <a-menu-item key="4"> option4 </a-menu-item>
        </a-sub-menu> -->
      </a-menu>
    </a-layout-sider>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped lang="less">
.ant-layout-sider {
  height: 100vh;
  overflow-y: auto;
}
</style>
